import request from '@/utils/request'

export function getYears(){
    return request({
        url:'/grad/yearList',
        method: 'get',
    })
}

export function getBasicData(start,end){
  return request({
    url: '/grad/documentData',
    method: 'get',
    params:{
        start:start,
        end:end
    }
  })
}

export function getDirectionData(start,end){//毕业去向信息
    return request({
      url: '/grad/direction',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }

  export function getSchoolData(start,end){//升学信息
    return request({
      url: '/grad/school',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }

  export function getOrgKindData(start,end){//单位性质
    return request({
      url: '/grad/org_kind',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }

  export function getOrgLocationData(start,end){//就业地域
    return request({
      url: '/grad/org_location',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }

  export function getOrgIndustryData(start,end){//单位行业分布
    return request({
      url: '/grad/org_industry',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }

  export function getOrgNameData(start,end){//主要单位分布
    return request({
      url: '/grad/org_name_total',
      method: 'get',
      params:{
          start:start,
          end:end
      }
    })
  }